package com.cy.store.entity;

import lombok.*;

import java.io.Serializable;

/**
 * 用户的实体类 StringBoot约定大于配置
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

public class User extends BaseEntity implements Serializable {
    private Integer uid;              //    uid INT AUTO_INCREMENT COMMENT '用户id',
    private String username;          //    username VARCHAR(20) NOT NULL UNIQUE  COMMENT '用户名',
    private String password;          //    password CHAR(32) NOT NULL COMMENT'密码',
    private String salt;              //    salt CHAR(36) COMMENT'盐值',
    private String phone;             //    phone VARCHAR(20)COMMENT'电话号码',
    private String email;             //    email VARCHAR(30)COMMENT '电子邮箱',
    private Integer gender;           //    gender INT COMMENT  '性别:0-女，1-男',
    private String avatar;            //    avatar VARCHAR(50) COMMENT'头像',
    private Integer isDelete;         //    is_delete INT COMMENT'是否删除:0-未删除，1-已删除',

}
